package com.niren.relay.webController.hellp;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class helpController {

    @RequestMapping("/help")
    public Map<String,Object> getHelpInfo(){
        Map<String,Object> modelMap = new HashMap<String,Object>();
        modelMap.put("添加设备路径",this.getAddDeviceLink());
        modelMap.put("删除设备路径",delDeviceLink());
        modelMap.put("获取设备信息路径",getDeviceInfoLink());
        modelMap.put("设置设备状态路径",setDeviceState());
        return modelMap;
    }

    private String getAddDeviceLink(){
        return "/dev/adddev/mac&outCh&inCh";
    }

    private String delDeviceLink(){
        return "/dev/deldev/{devId}";
    }

    private String getDeviceInfoLink(){
        return "/dev/getdev";
    }

    private String setDeviceState(){
        return "/dev/setstuta/devId&devState";
    }
}
